package win.devhu.testing.SpringBoot2Kotlin

import org.junit.Test
import org.junit.runner.RunWith
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner
import win.devhu.testing.SpringBoot2Kotlin.jpaDemo.RestWebController
import win.devhu.testing.SpringBoot2Kotlin.jpaDemo.entity.Address
import win.devhu.testing.SpringBoot2Kotlin.jpaDemo.repositories.AddressRepository
import win.devhu.testing.SpringBoot2Kotlin.jpaDemo.repositories.UserRepository

@RunWith(SpringRunner::class)
@SpringBootTest
class SpringBoot2KotlinApplicationTests {

    private val logger: Logger = LoggerFactory.getLogger(SpringBoot2KotlinApplicationTests::class.java)

    @Autowired
    lateinit var addressRepository: AddressRepository

    @Autowired
    lateinit var userRepository: UserRepository

	@Test
	fun contextLoads() {
        addressRepository.deleteById(11)
//        userRepository.deleteById(10)
        println("hello,word!")
    }

}
